package com.ssm.demo.controller.mail;

import com.ssm.demo.service.mail.IMailSenderService;
import com.ssm.demo.service.tbuser.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("mail")
public class MailSenderController {

    @Autowired
    private IMailSenderService mailSenderService;

    /**
     * 发送邮件
     */
    @RequestMapping("sendMail")
    public void sendMail(){

        User user = new User();
        user.setId("35");
        user.setName("kd");
        mailSenderService.sendMail(user);
    }


}
